package com.charging.controller;


import com.charging.bean.Site;
import com.charging.bean.User;
import com.charging.bean.layuiBean.ResultPage;
import com.charging.bean.layuiBean.VoPage;
import com.charging.config.config.BaseController;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * <p>
 * 个人信息 前端控制器
 * </p>
 *
 * @author 冯政尚
 * @since 2019-09-25
 */
@Controller
@RequestMapping("admin/user")
public class UserController extends BaseController {


    /**
     * @return
     */
    @RequestMapping(value = "user.html",method = RequestMethod.GET)
    public String user(){
        return "user/user";
    }



    /**
     * @param voPage
     * @return 后台查询
     */
    @RequestMapping(value = "selectMyPage",method = RequestMethod.GET)
    @ResponseBody
    public ResultPage<User> selectMyPage(VoPage voPage){
        return userService.selectMyPage(voPage);
    }



}
